﻿@{
    ViewBag.Title = "ViewPage1";
    Layout = "~/Views/Shared/BaseView.cshtml";
}
<script type="text/javascript">
    function changediv(id) {
        if (id == 1) {
            document.getElementById("table1").style.display = "block";
            document.getElementById("table2").style.display = "none";
            $("#button2").removeClass();
            $("#button1").addClass("cur");
        } else {
            document.getElementById("table2").style.display = "block";
            document.getElementById("table1").style.display = "none";
            $("#button1").removeClass();
            $("#button2").addClass("cur");
        }
    }
    function showdiv3() {
        if (document.getElementById("table3").style.display == "block") {
            document.getElementById("table3").style.display = "none";
        } else {
            document.getElementById("table3").style.display = "block";
        }

    }
</script>
@{
    Common.Web.Cookie cookie = new Common.Web.Cookie();
    int visiterId = Convert.ToInt32(cookie.GetCookie("LoginUserId"));
    BenefitHelper.DB.DBManager db = new BenefitHelper.DB.DBManager();
    if (BenefitHelper.Sys.VisitPrower.HasAdminPrower(visiterId, db))
    { 
    <div id="buttons">
        <span>
            <p>
                <a href="/Init" target="_blank" title="后台管理">后台管理</a>
            </p>
        </span>
    </div>
    }
    db.Dispose();
}
<dl id="xiangmu">
    <dt><span id="title2">@ViewBag.op.UName</span></dt>
    <dd>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" id="panzhongfenxi">
            <tr>
                <td id="curr_p">
                    <b class="panzhong"><a>盘中分析</a></b><b><a href="/AfterAnalysis/Index/@ViewBag.op.Id/@ViewBag.pdate.ToString().Substring(0, 6)">盘后分析</a></b>
                </td>
                <td class="selected">
                    <img src="/Content/images/icon_01.gif" />汇总信息
                </td>
                <td>
                    <a href="/TimeSharing/Index/@ViewBag.op.Id/@ViewBag.pdate">
                        <img src="/Content/images/icon_09.gif" />持仓分析</a>
                </td>
                <td>
                    <a href="/ProfitAndLossDistribution/Index/@ViewBag.op.Id/@ViewBag.pdate">
                        <img src="/Content/images/icon_10.gif" />盈亏分布</a>
                </td>
                <td>
                    <a href="/TradeDetail/Index/@ViewBag.op.Id/@ViewBag.pdate">
                        <img src="/Content/images/icon_05.gif" />交易明细</a>
                </td>
            </tr>
        </table>
    </dd>
</dl>
<div id="bigDataBox">
    <span style="width: 50%;">数据统计时间：
        <input type="text" id="key" class="Wdate" onclick="WdatePicker()" name="key"  value="@ViewBag.Hpdate"  /><span
            style="padding-left: 24px;"><span style="cursor: pointer;"><input type="button" value="查看"
                style="font-size: 9pt; width: 60px; height: 22px;" id="changedate" /></span></span></span>
    <div style="height: 5px; line-height: 5px;">
    </div>
    <div style="width: 60%; background-repeat: no-repeat; float: left; text-align: left;">
        <img src="/content/images/jiaoyigaikuang.png" />
    </div>
    <table style="width: 100%;" class="list" cellspacing="0" cellpadding="0">
        <tr>
            <td class="title" style="width: 10%;">
                参数
            </td>
            <td class="title" style="width: 40%;">
                值
            </td>
            <td class="title" style="width: 10%;">
                参数
            </td>
            <td class="title" style="width: 40%;">
                值
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(1)">
            <td>
                <div style="float: left; text-align: left;">
                    平仓盈亏</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;">
                <div style="float: right; text-align: right; width: 100%;" class="div1">
                    @string.Format("{0:N2}", ViewBag.change.Profit)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table1">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", ViewBag.change.Profit)</div>
                                <div style="color: #535985">
                                    今日</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changefiveday.Profit)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changeweek.Profit)</div>
                                <div style="font-size: 8pt;">
                                    本周均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changemonth.Profit)</div>
                                <div style="font-size: 8pt;">
                                    本月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changegroup.Profit)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.companyavgday.Profit)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.batchavgday.Profit)</div>
                                <div style="font-size: 8pt;">
                                    同批次均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatorweeksum.Profit)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatormonthsum.Profit)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatoryearsum.Profit)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                <div style="float: left;">
                    手续费</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class=" leftyes">
                <div style="float: right; text-align: right; width: 100%;" class="div1">
                    @string.Format("{0:N2}", ViewBag.change.Free)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table1">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", ViewBag.change.Free)</div>
                                <div style="color: #535985">
                                    今日</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changefiveday.Free)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changeweek.Free)</div>
                                <div style="font-size: 8pt;">
                                    本周均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changemonth.Free)</div>
                                <div style="font-size: 8pt;">
                                    本月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changegroup.Free)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.companyavgday.Free)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.batchavgday.Free)</div>
                                <div style="font-size: 8pt;">
                                    同批次均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatorweeksum.Free)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatormonthsum.Free)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatoryearsum.Free)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(2)">
            <td>
                <div style="float: left;">
                    净利润</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;">
                <div style="float: right; text-align: right; width: 100%;" class="div2">
                    @string.Format("{0:N2}", ViewBag.change.DayCount)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table2">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", ViewBag.change.DayCount)</div>
                                <div style="color: #535985">
                                    今日</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changefiveday.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changeweek.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    本周均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changemonth.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    本月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changegroup.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.companyavgday.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.batchavgday.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    同批次均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatorweeksum.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatormonthsum.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatoryearsum.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                <div style="float: left;">
                    交易笔数</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class=" leftyes">
                <div style="float: right; text-align: right; width: 100%;" class="div2">
                    @ViewBag.change.BillCount</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table2">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @ViewBag.change.BillCount</div>
                                <div style="color: #535985">
                                    今日</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changefiveday.BillCount</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changeweek.BillCount</div>
                                <div style="font-size: 8pt;">
                                    本周均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changemonth.BillCount</div>
                                <div style="font-size: 8pt;">
                                    本月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changegroup.BillCount</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.companyavgday.BillCount</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.batchavgday.BillCount</div>
                                <div style="font-size: 8pt;">
                                    同批次均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatorweeksum.BillCount</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatormonthsum.BillCount</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatoryearsum.BillCount</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(3)">
            <td title="平均持仓时长">
                <div style="float: left;">
                    持仓时长</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;">
                <div style="float: right; text-align: right; width: 100%;" class="div3">
                    @ViewBag.change.AvgPostionTime</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table3">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @ViewBag.change.AvgPostionTime</div>
                                <div style="color: #535985">
                                    今日</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changefiveday.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changeweek.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    本周均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changemonth.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    本月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changegroup.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.companyavgday.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.batchavgday.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    同批次均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatorweeksum.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatormonthsum.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatoryearsum.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                <div style="float: left;">
                    最大回撤</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class=" leftyes">
                <div style="float: right; text-align: right; width: 100%;" class="div3">
                    @string.Format("{0:N2}", ViewBag.change.MaxReturn)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table3">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7"
                        onclick="fsa(1)">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", ViewBag.change.MaxReturn)</div>
                                <div style="color: #535985">
                                    今日</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changefiveday.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changeweek.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    本周均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changemonth.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    本月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changegroup.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.companyavgday.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.batchavgday.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    同批次均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatorweeksum.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatormonthsum.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatoryearsum.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(4)">
            <td>
                <div style="float: left;">
                    总亏损</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;">
                <div style="float: right; text-align: right; width: 100%;" class="div4">
                    @string.Format("{0:N2}", ViewBag.change.SumLost)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table4">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", ViewBag.change.SumLost)</div>
                                <div style="color: #535985">
                                    今日</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changefiveday.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changeweek.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    本周均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changemonth.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    本月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changegroup.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.companyavgday.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.batchavgday.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    同批次均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatorweeksum.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatormonthsum.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatoryearsum.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                <div style="float: left;">
                    总盈利</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class=" leftyes">
                <div style="float: right; text-align: right; width: 100%;" class="div4">
                    @string.Format("{0:N2}", ViewBag.change.SumWin)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table4">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", ViewBag.change.SumWin)</div>
                                <div style="color: #535985">
                                    今日</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changefiveday.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changeweek.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    本周均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changemonth.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    本月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changegroup.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.companyavgday.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.batchavgday.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    同批次均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatorweeksum.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatormonthsum.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatoryearsum.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(5)">
            <td class="bottomyes">
                <div style="float: left;">
                    保证金</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class="bottomyes">
                <div style="float: right; text-align: right; width: 100%;" class="div5">
                    @string.Format("{0:N2}", ViewBag.change.UsedMargin)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table5">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", ViewBag.change.UsedMargin)</div>
                                <div style="color: #535985">
                                    今日</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changefiveday.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changeweek.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    本周均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changemonth.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    本月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.changegroup.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.companyavgday.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.batchavgday.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    同批次均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatorweeksum.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatormonthsum.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", ViewBag.operatoryearsum.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td title="超出止损次数" class="bottomyes">
                <div style="float: left;">
                    超损次数</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class="bottomyes leftyes">
                <div style="float: right; text-align: right; width: 100%;" class="div5">
                    @ViewBag.change.OverStopLoss</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table5">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @ViewBag.change.OverStopLoss</div>
                                <div style="color: #535985">
                                    今日</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changefiveday.OverStopLoss</div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changeweek.OverStopLoss</div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                    本周均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changemonth.OverStopLoss</div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                    本月均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.changegroup.OverStopLoss</div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.companyavgday.OverStopLoss</div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.batchavgday.OverStopLoss</div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                    同批次均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatorweeksum.OverStopLoss</div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatormonthsum.OverStopLoss</div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @ViewBag.operatoryearsum.OverStopLoss</div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
    <div style="height: 15px; line-height: 15px;">
    </div>
    <table style="width: 100%;">
        <tr>
            <td style="width: 66%; vertical-align: top;">
                <div class="statisticsTime" style="height: 280px; text-align: right;">
                    <div style="width: 100%; height: 260px;" id="showflash">
                    </div>
                    本周预期：@string.Format("{0:N2}", ViewBag.operatorweekexpected.DayCount)
                </div>
            </td>
            <td style="width: 34%; vertical-align: top;">
                <div class="statisticsTime" style="height: 280px;">
                    <div style="width: 100%; height: 300px;" id="showflash2">
                    </div>
                </div>
            </td>
        </tr>
    </table>
    @*    <div style="width: 40%; position: fixed; top: 40%; left: 30%; display: none; background-color: #c0fafb;
        text-align: center; border: 1px solid #000000;" align="center" id="myshowdiv">
        <div style="height: 2px; line-height: 2px; background-color: #c0fafb;">
            &nbsp;</div>
        <table cellspacing="0" cellpadding="0" class="list" style="width: 99%; cursor: move;
            background-color: White;" align="center">
            <tr>
                <td class="title" style="text-align: left; padding-left: 10px;">
                </td>
                <td class="title" style="text-align: right;">
                    所有交易
                </td>
                <td class="title" style="text-align: right;">
                    账户A
                </td>
                <td class="title" style="text-align: right;">
                    账户B
                </td>
                <td class="title" style="text-align: right;">
                    账户C
                </td>
                <td class="title leftyes" style="text-align: right;">
                    总数占比
                </td>
            </tr>
            <tr id="ad1">
                <td style="text-align: left; padding-left: 10px;">
                    平仓盈亏(元)
                </td>
                <td style="text-align: right;">
                    100000<span class="down">↓</span>
                </td>
                <td style="text-align: right;">
                    80000<span class="down">↓</span>
                </td>
                <td style="text-align: right;">
                    20000<span class="raise">↑</span>
                </td>
                <td style="text-align: right;">
                    20000
                </td>
                <td style="text-align: right;" class="leftyes">
                    20000
                </td>
            </tr>
            <tr style="background-color: #f5f7c7">
                <td style="text-align: left; padding-left: 10px;">
                    cu1003
                </td>
                <td style="text-align: right;">
                    100000<span class="raise">↑</span>
                </td>
                <td style="text-align: right;">
                    80000<span class="down">↓</span>
                </td>
                <td style="text-align: right;">
                    20000<span class="raise">↑</span>
                </td>
                <td style="text-align: right;">
                    -
                </td>
                <td style="text-align: right;" class="leftyes">
                    20000
                </td>
            </tr>
            <tr style="background-color: #f5f7c7">
                <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                    cu1201
                </td>
                <td style="text-align: right;">
                    100000<span class="raise">↑</span>
                </td>
                <td style="text-align: right;">
                    80000<span class="down">↓</span>
                </td>
                <td style="text-align: right;">
                    20000<span class="raise">↑</span>
                </td>
                <td style="text-align: right;">
                    -
                </td>
                <td style="text-align: right;" class="leftyes">
                    20000
                </td>
            </tr>
            <tr style="background-color: #f5f7c7">
                <td style="text-align: right;">
                    <b>cu小计：</b>
                </td>
                <td style="text-align: right;">
                    100000<span class="raise">↑</span>
                </td>
                <td style="text-align: right;">
                    80000<span class="down">↓</span>
                </td>
                <td style="text-align: right;">
                    20000<span class="raise">↑</span>
                </td>
                <td style="text-align: right;">
                    -
                </td>
                <td style="text-align: right;" class="leftyes">
                    20000
                </td>
            </tr>
            <tr style="background-color: #f5f7c7">
                <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                    al1203
                </td>
                <td style="text-align: right;">
                    100000<span class="raise">↑</span>
                </td>
                <td style="text-align: right;">
                    80000<span class="down">↓</span>
                </td>
                <td style="text-align: right;">
                    20000<span class="raise">↑</span>
                </td>
                <td style="text-align: right;">
                    -
                </td>
                <td style="text-align: right;" class="leftyes">
                    20000
                </td>
            </tr>
            <tr style="background-color: #f5f7c7">
                <td style="text-align: right;">
                    <b>al小计：</b>
                </td>
                <td style="text-align: right;">
                    100000<span class="raise">↑</span>
                </td>
                <td style="text-align: right;">
                    80000<span class="down">↓</span>
                </td>
                <td style="text-align: right;">
                    20000<span class="raise">↑</span>
                </td>
                <td style="text-align: right;">
                    -
                </td>
                <td style="text-align: right;" class="leftyes">
                    20000
                </td>
            </tr>
        </table>
        <div style="float: right; width: 100%; background-color: #c0fafb; text-align: right;">
            <img src="/content/images/selected.gif" />&nbsp;按账户&nbsp;&nbsp;&nbsp;&nbsp;<img src="/content/images/unselected.gif" />&nbsp;按多空&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <span style="cursor: pointer;" onclick="fsa()">关闭</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>
    </div>*@
    <div style="height: 15px; width: 100%;">
    </div>
    <div style="width: 60%; background-repeat: no-repeat;">
        <img src="/content/images/jiaoyizhuangtai.png" />
    </div>
    <div style="width: 100%;">
        <div style="width: 755px; height: 170px; background-image: url('/Content/images/bg.jpg')">
            <div>
                @for (int i = 1; i < 6; i++)
                {
                    if (i == Convert.ToInt32(ViewBag.status))
                    {
                    <div style="width: 151px; height: 170px; float: left;">
                        <div style="font-size: 18pt; padding-left: 10px; padding-right: 10px; margin-top: 80%;">
                            交易状态<br />
                            @ViewBag.statusstring
                        </div>
                    </div>
                    }
                    else
                    {
                    <div style="width: 151px; height: 170px; float: left;">
                        <div style="font-size: 18pt; padding-left: 10px; padding-right: 10px; margin-top: 80%;">
                        </div>
                    </div>
                    }
                }
            </div>
        </div>
    </div>
    <div style="height: 5px; width: 100%;">
    </div>
    @* <div class="statisticsTime" style="color: Red; font-size: 12pt; text-align: right;
        width: 97%;">
        <b>当日罚款：@ViewBag.publish.Publish 元</b>
    </div>
    <div style="height: 5px; line-height: 5px; width: 100%;">
    </div>
    <div class="statisticsTime" style="font-size: 12pt; width: 97%;">
        <b>交易小结：总体有进步，如果在持仓时间能够长一点，获取可以取得更好的成绩</b>
    </div>*@
    <div class="report-tip">
        <div class="report-tip-text">
            <div>
                <b>功能说明：</b></div>
            <div>
                五日均值：当前查询交易日的前面五天的平均值（不包括当前交易日）<br />
                获利性成交：相对于当前（统计时间显示的时间）股票价格，在所有当日已经的成交中对于买入用户处于获利的成交分布。<br />
                成交均价：所有处于亏损或获利的不同成交单子中进行统计，平均成交价格。</div>
        </div>
        <div class="report-tip-close">
            &nbsp;</div>
        <div class="report-tip-text">
            <div>
                <b>使用帮助：</b></div>
            <div>
                本内容主要是将大小单成交与获利与亏损结合起来，以便于用户可以通过分析来获取有利于交易的市场交易习惯和潜在交易机会。</div>
        </div>
        <div class="report-tip-text">
            <div>
                <b>数据更新：</b></div>
            <div>
                盘中数据动态更新，更新间隔5分钟，由于运算因素，实时成交数据整体延时约5-10分钟。</div>
        </div>
    </div>
</div>
@MvcHtmlString.Create(ViewBag.js)
<script type="text/javascript" src="/Scripts/jquery-ui-1.8.11.min.js"></script>
<script type="text/javascript">
    TodayBenefit();
    ProductPie();
    //  DayShouyilv();
    function showDetail() {
        if ($('#ad').attr('class') == "detailsold") {
            $("#ad").removeClass("detailsold").addClass("detailsoldclick");
        } else {
            $("#ad").removeClass("detailsoldclick").addClass("detailsold");
        }
        $(".detailslist").toggle();
    }
    $(document).ready(function () {
        $("#myshowdiv").draggable();
        $('#ade').bind("mouseover", function () {
            BindTitleDiv($(this), "你是本公司一个很优秀的员工");
        });

    }
     );
    function fff() {
        $(".basehiddendiv").toggle();
        $(".aew").toggle();
        //    $(".detailsold").removeClass("detailsold").addClass("detailsoldclick");
    }
    function BindTitleDiv(obj, say) {
        var offset = obj.offset();
        var width = obj.css("width").toString().replace("px", "");
        var height = obj.css("height").toString().replace("px", "");
        var s = "<div id='titlediv' style='position:absolute;width:357px;height:100px;left:" + (offset.left + (width / 2)) + "px;top:" + (offset.top - (height / 2)) + "px;background-image:url(/Content/images/title.png);background-repeat:no-repeat;padding-left:60px; padding-top:10px;text-indent:2em;'>" + say + "</div>";
        if (!document.getElementById("titlediv")) {
            obj.append(s);
        }

    }
    //    function fsa(c) {
    //        var offset = $("#fs").offset();
    //        if (c == 1) {
    //            $("#myshowdiv").css("left", offset.left + 5);
    //            $("#myshowdiv").css("top", offset.top - 175);
    //        } else {
    //            $("#myshowdiv").css("left", offset.left - 545);
    //            $("#myshowdiv").css("top", offset.top - 175);
    //        }
    //        $("#myshowdiv").toggle();

    //    }
    function fee(id) {
        $(".div" + id).toggle();
        $(".table" + id).toggle();
    }
</script>
